﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OSS.Domain;
using OSS.Core;
using OSS.Service;

namespace OSS.WebUI.Controllers
{
    public class IndexController : Controller
    {
        // GET: Index
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Home()
        {
            IList<User> IUser = Container.Instance.Resolve<IUserService>().GetAll();
            return View(IUser);
        }

        public ActionResult Create(User users)
        {
            return View();
        }

        public JsonResult Users()
        {
            IList<User> Iuser = Container.Instance.Resolve<IUserService>().GetAll();
            return Json(Iuser, JsonRequestBehavior.AllowGet);
        }
    }
}